<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

/**
 * ThinkPHP 普通模式定义
 */
return array(
    // 配置文件
    'config' => array(
        THINK_PATH . 'Conf/convention.php', // 系统惯例配置
        COMMON_PATH.'Conf/' . 'config' . CONF_EXT, // 应用公共配置
    ),

    // 别名定义
    'alias'  => array(
        'Think\Log'               => LIB_PATH.'Think/' . 'Log' . EXT,
        'Think\Log\Driver\File'   => LIB_PATH.'Think/' . 'Log/Driver/File' . EXT,
        'Think\Exception'         => LIB_PATH.'Think/' . 'Exception' . EXT,
        'Think\Model'             => LIB_PATH.'Think/' . 'Model' . EXT,
        'Think\Db'                => LIB_PATH.'Think/' . 'Db' . EXT,
        'Think\Template'          => LIB_PATH.'Think/' . 'Template' . EXT,
        'Think\Cache'             => LIB_PATH.'Think/' . 'Cache' . EXT,
        'Think\Cache\Driver\File' => LIB_PATH.'Think/' . 'Cache/Driver/File' . EXT,
        'Think\Storage'           => LIB_PATH.'Think/' . 'Storage' . EXT,
    ),

    // 函数和类文件
    'core'   => array(
        THINK_PATH . 'Common/functions.php',
        COMMON_PATH . 'Common/function.php',
        LIB_PATH.'Think/' . 'Hook' . EXT,
        LIB_PATH.'Think/' . 'App' . EXT,
        LIB_PATH.'Think/' . 'Dispatcher' . EXT,
        //LIB_PATH.'Think/' . 'Log'.EXT,
        LIB_PATH.'Think/' . 'Route' . EXT,
        LIB_PATH.'Think/' . 'Controller' . EXT,
        LIB_PATH.'Think/' . 'View' . EXT,
        LIB_PATH . 'Behavior/' . 'BuildLiteBehavior' . EXT,
        LIB_PATH . 'Behavior/' . 'ParseTemplateBehavior' . EXT,
        LIB_PATH . 'Behavior/' . 'ContentReplaceBehavior' . EXT,
    ),
    // 行为扩展定义
    'tags'   => array(
        'app_init'        => array(
            'Behavior\BuildLiteBehavior', // 生成运行Lite文件
        ),
        'app_begin'       => array(
            'Behavior\ReadHtmlCacheBehavior', // 读取静态缓存
        ),
        'app_end'         => array(
            'Behavior\ShowPageTraceBehavior', // 页面Trace显示
        ),
        'view_parse'      => array(
            'Behavior\ParseTemplateBehavior', // 模板解析 支持PHP、内置模板引擎和第三方模板引擎
        ),
        'template_filter' => array(
            'Behavior\ContentReplaceBehavior', // 模板输出替换
        ),
        'view_filter'     => array(
            'Behavior\WriteHtmlCacheBehavior', // 写入静态缓存
        ),
    ),
);
